#! /bin/bash

echo "----socket app compile start----"
current_date=$(date +%Y-%m-%d-%H-%M-%S) # 获取当前日期，格式为YYYY-MM-DD-HH-MM-SS
echo -e "\033[1;41m compile date $current_date \033[0m"

rm -f server_app
rm -f client_app

gcc server_ipc.c -o server_app
gcc client_ipc.c -o client_app

if [ -f server_app ] 
then
    echo "server_app compile success !!!"
else
    echo "server_app compile failed !!!"
fi

if [ -f client_app ] 
then
    echo "client_app compile success !!!"
else
    echo "client_app compile failed !!!"
fi